﻿@using Resources
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    @*todo:favicon.ico必须在发布后去掉*@
    <link rel="shortcut icon" href="http://www.google.com/favicon.ico" />
    @*   <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />*@
    <link href="@Url.Content("../../Content/MainStyle.css")" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/base/minified/jquery-ui.min.css")"/>
    <script src="@Url.Content("~/Scripts/jquery-1.8.3.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/json2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/appScripts/jquery.netsurveillance.js")" type="text/javascript"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.9.2.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.placeholder.min.js")"></script>
    <script src="@Url.Content("~/Scripts/appScripts/JavaScript.FullScreen.js")"></script>
    @RenderSection("css", false)
    @RenderSection("javascript", false)
    <style type="text/css">
        body {
            background: #f7f7f7;
        }
        .middle_menu li a img {
            width: 15px;
            height: 16px;
        }
    </style>
</head>
<body style="background:#f7f7f7;">
    <div class="page">
        @Html.Partial("_Header")
        <div id="main">
            <ul class="middle_menu">
                <li>
                    <a href="@Url.Action("MonitorSetting","System")" title="@MenuResource.SystemSetting_MonitorSetting">
                        <img src="@Url.Content("~/Content/images/config_menu_icon01.png")"
                             alt="@MenuResource.SystemSetting_MonitorSetting"/>
                        @MenuResource.SystemSetting_MonitorSetting
                    </a>
                </li>
                <li>
                    <a href="@Url.Action("FieldSetting","System")" title="@MenuResource.SystemSetting_FieldSetting">
                        <img src="@Url.Content("~/Content/images/config_menu_icon02.png")"
                             alt="@MenuResource.SystemSetting_FieldSetting"/>
                        @MenuResource.SystemSetting_FieldSetting
                    </a>
                </li>
                <li>
                    <a href="@Url.Action("ADSLSetting","System")" title="@MenuResource.SystemSetting_ADSLSetting">
                        <img src="@Url.Content("~/Content/images/config_menu_icon03.png")"
                             alt="@MenuResource.SystemSetting_ADSLSetting"/>
                        @MenuResource.SystemSetting_ADSLSetting
                    </a>
                </li>
                <li>
                    <a href="@Url.Action("AlertSetting","System")" title="@MenuResource.SystemSetting_AlertSetting">
                        <img src="@Url.Content("~/Content/images/config_menu_icon04.png")"
                             alt="@MenuResource.SystemSetting_AlertSetting"/>
                        @MenuResource.SystemSetting_AlertSetting
                    </a>
                </li>
                <li>
                    <a href="@Url.Action("IpSetting","System")" title="@MenuResource.SystemSetting_IpSetting">
                        <img src="@Url.Content("~/Content/images/config_menu_icon07.png")"
                             alt="@MenuResource.SystemSetting_IpSetting"/>
                        @MenuResource.SystemSetting_IpSetting
                    </a>
                </li>
                <li>
                    <a href="@Url.Action("RemoteControl","System")" title="@MenuResource.SystemSetting_IpSetting">
                        <img src="@Url.Content("~/Content/images/config_menu_icon01.png")"
                             alt="@MenuResource.SystemSetting_RemoteControl"/>
                        @MenuResource.SystemSetting_RemoteControl
                    </a>
                </li>
                <li style="@((ViewBag.IsAdmin ?? false) ? "" : "display:none;")">
                    <a href="@Url.Action("AccountManage","System")" title="@MenuResource.SystemSetting_AccountManage">
                        <img src="@Url.Content("~/Content/images/config_menu_icon05.png")"
                             alt="@MenuResource.SystemSetting_AccountManage"/>
                        @MenuResource.SystemSetting_AccountManage
                    </a>
                </li>
                <li>
                    <a href="@Url.Action("CaseManage","System")" title="@MenuResource.SystemSetting_CaseManage">
                        <img src="@Url.Content("~/Content/images/config_menu_icon06.png")"
                             alt="@MenuResource.SystemSetting_CaseManage"/>
                        @MenuResource.SystemSetting_CaseManage
                    </a>
                </li>
                <li>
                    <a href="@Url.Action("KeywordTemplateManage","System")" title="@MenuResource.SystemSetting_KeywordTemplateSetting">
                        <img src="@Url.Content("~/Content/images/config_menu_icon07.png")"
                             alt="@MenuResource.SystemSetting_KeywordTemplateSetting"/>
                        @MenuResource.SystemSetting_KeywordTemplateSetting
                    </a>
                </li>
            </ul>
            <div>
                @RenderBody()
            </div>
        </div>
    </div>
</body>
</html>
<script type="text/javascript">
    $(function () {
        $('#main .middle_menu li:eq(@((ViewBag.CurrentMiddleMenu ?? 1) - 1))').addClass('currentMiddleMenu');
        @Html.Partial("_ShowErrorMessage")
    });
</script>
